# """ 日志操作接口
# @Project: Rebar
# @File: routers.py
# @Author: hzc
# @Date: 2023/3/29 10:29
# """
# from fastapi import APIRouter, Header, Query
# from model.db.mapper import get_logs
# from utils import SuccessCode, objs_to_dict, success_res
#
# log_router = APIRouter(prefix="/logs", tags=["日志管理"])
#
#
# @log_router.get("", name="分页查询日志")
# async def _get_logs(
#         page_num: int = Query(default=1, ge=1, title="页码"),
#         page_size: int = Query(default=10, ge=5, le=20, title="每页数据量"),
#         token=Header("token")
# ):
#     logs = get_logs(page_num, page_size)
#     return success_res({
#         'logs': objs_to_dict(logs),
#         'length': len(logs)
#     }, SuccessCode.GET)
#
